<template>
  <div>
    测试组件

    <button @click="fn">按钮</button>
  </div>
</template>

<script>
import EventBus from "@/EventBus";
export default {
  data() {
    return {};
  },
  methods: {
    fn() {
      EventBus.$emit("my-event", 300);
    },
  },
};
</script>

<style scoped></style>
